ALMaSS  1.0
The Animal, Landscape and Man Simulation System
Partridge_Chick2 Class Reference

The partridge Chick2 class. More...

#include <Partridge_All.h>

Inheritance diagram for Partridge_Chick2:
Partridge_Chick Partridge_Base TAnimal TALMaSSObject

Public Member Functions

virtual void BeginStep (void)
 Chick2 BeginStep. More...
 
virtual void Step (void)
 Chick2Step. More...
 
virtual void EndStep (void)
 Chick2 EndSte[. More...
 
virtual bool DailyMortality ()
 Background mortality check. More...
 
virtual bool OnFarmEvent (FarmToDo event)
 Management event handler. More...
 
 Partridge_Chick2 (int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
 Constructor. More...
 
virtual ~Partridge_Chick2 (void)
 Destructor. More...
 
- Public Member Functions inherited from Partridge_Chick
virtual void Dying ()
 Generic dying handler. More...
 
void OnYouAreDead ()
 Message handler. More...
 
 Partridge_Chick (int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
 Constructor. More...
 
virtual ~Partridge_Chick (void)
 Destructor. More...
 
- Public Member Functions inherited from Partridge_Base
Partridge_Object GetObjectType ()
 Supply object type. More...
 
bool GetUncleStatus ()
 Supply uncle status. More...
 
void SetUncleStatus (bool a_Status)
 Set uncle status. More...
 
bool PossibleMate (Partridge_Base *a_partridge)
 Can we mate? More...
 
virtual bool ArePaired ()
 Overridden base function. More...
 
Partridge_CoveyGetCovey (void)
 Supply covey pointer. More...
 
Partridge_State GetState (void)
 Supply state. More...
 
void SetState (Partridge_State a_pars)
 Set state. More...
 
int GetFamily (void)
 Supply family ID. More...
 
int GetAge (void)
 Supply age. More...
 
void SetAge (int a_age)
 Set age. More...
 
long GetID (void)
 Supply ID. More...
 
void SetFamily (unsigned int family)
 Set family ID. More...
 
void SetCovey (Partridge_Covey *a_covey)
 Set covey pointer. More...
 
void MakeCovey ()
 Create our own covey. More...
 
void SwitchCovey (Partridge_Covey *a_covey)
 Swap coveys. More...
 
 Partridge_Base (int a_born_x, int a_born_y, int a_x, int a_y, int a_family_counter, Partridge_Covey *a_covey, Landscape *a_map, Partridge_Population_Manager *a_manager)
 Constructor for Partridge_Base. More...
 
virtual ~Partridge_Base (void)
 Destructor. More...
 
virtual void CopyMyself (int a_Ptype)
 Duplicate this object. More...
 
- Public Member Functions inherited from TAnimal
unsigned SupplyFarmOwnerRef ()
 
AnimalPosition SupplyPosition ()
 
APoint SupplyPoint ()
 
int SupplyPolygonRef ()
 
int Supply_m_Location_x ()
 
int Supply_m_Location_y ()
 
virtual void KillThis ()
 
virtual void CopyMyself ()
 
void SetX (int a_x)
 
void SetY (int a_y)
 
 TAnimal (int x, int y, Landscape *L)
 
virtual void ReinitialiseObject (int x, int y, Landscape *L)
 Used to re-use an object - must be implemented in descendent classes. More...
 
virtual int WhatState ()
 
void CheckManagement (void)
 
void CheckManagementXY (int x, int y)
 
- Public Member Functions inherited from TALMaSSObject
int GetCurrentStateNo ()
 Returns the current state number. More...
 
void SetCurrentStateNo (int a_num)
 Sets the current state number. More...
 
bool GetStepDone ()
 Returns the step done indicator flag. More...
 
void SetStepDone (bool a_bool)
 Sets the step done indicator flag. More...
 
virtual void ReinitialiseObject ()
 Used to re-use an object - must be implemented in descendent classes. More...
 
 TALMaSSObject ()
 The constructor for TALMaSSObject. More...
 
virtual ~TALMaSSObject ()
 The destructor for TALMaSSObject. More...
 
void OnArrayBoundsError ()
 Used for debugging only, tests basic object properties. More...
 

Private Member Functions

virtual Partridge_State ChDeveloping (void)
 State developing. More...
 
virtual Partridge_State ChMaturing (void)
 State maturing. More...
 

Additional Inherited Members

- Public Attributes inherited from Partridge_Base
Partridge_Population_Managerm_OurPopulationManager
 Pointer to the population manager. More...
 
- Protected Member Functions inherited from Partridge_Chick
void ChDying (void)
 Chick Dying. More...
 
- Protected Member Functions inherited from Partridge_Base
virtual void CheckMatePointers ()
 Debug. More...
 
- Protected Member Functions inherited from TAnimal
void CorrectWrapRound ()
 Corrects wrap around co-ordinate problems. More...
 
- Protected Attributes inherited from Partridge_Chick
bool m_sex
 Sex. More...
 
int m_starve
 Days spent starving. More...
 
- Protected Attributes inherited from Partridge_Base
int m_signal
 Used to pass information to outputs. More...
 
long m_id
 Individual bird ID. More...
 
int m_family_counter
 Family ID. More...
 
int m_age
 Age in days. More...
 
int m_born_x
 x-coord of birth More...
 
int m_born_y
 y-coord of birth More...
 
bool m_UncleStatus
 If has uncle status in the covey. More...
 
Partridge_Object m_object_type
 Type of pob object this is. More...
 
Partridge_Coveym_covey
 Pointer to the covey. More...
 
Partridge_State m_state
 Current behavioural state. More...
 
- Protected Attributes inherited from TAnimal
int m_Location_x
 
int m_Location_y
 
Landscapem_OurLandscape
 
- Protected Attributes inherited from TALMaSSObject
int m_CurrentStateNo
 The basic state number for all objects - '-1' indicates death. More...
 
bool m_StepDone
 Indicates whether the iterative step code is done for this timestep. More...
 

Detailed Description

The partridge Chick2 class.

Constructor & Destructor Documentation

◆ Partridge_Chick2()

Partridge_Chick2::Partridge_Chick2 ( int  a_born_x,
int  a_born_y,
Partridge_Female a_mother,
Partridge_Covey a_covey,
Landscape a_map,
bool  a_sex,
int  a_family_counter,
Partridge_Population_Manager a_manager 
)

Constructor.

Constructor for the Chick2. Uses the Partridge_Chick::Partridge_Chick constructor and then corrects details.

1029  :
1030  Partridge_Chick( a_born_x, a_born_y, a_mother, a_covey, a_map, a_sex, a_family_counter, a_manager )
1031  {
1032  // Need to correct two naughtly little details that were messed up by the chick constructor
1033  // First we are not a chick any longer
1035  // Second The covey now thinks it has an extra chick
1037 }
@ pob_Chick2
Definition: Partridge_All.h:297
Partridge_Object m_object_type
Type of pob object this is.
Definition: Partridge_All.h:418
Partridge_Covey * m_covey
Pointer to the covey.
Definition: Partridge_All.h:420
Partridge_Chick(int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
Definition: Partridge_All.cpp:663
void RemoveExtraChick()
Decrement the chick number.
Definition: Partridge_Covey.h:466

References Partridge_Base::m_covey, Partridge_Base::m_object_type, pob_Chick2, and Partridge_Covey::RemoveExtraChick().

◆ ~Partridge_Chick2()

virtual Partridge_Chick2::~Partridge_Chick2 ( void  )
inlinevirtual

Destructor.

649 {;}

Member Function Documentation

◆ BeginStep()

void Partridge_Chick2::BeginStep ( void  )
virtual

Chick2 BeginStep.

BefinStep just checks background mortality and management events.

Reimplemented from Partridge_Chick.

1252 {
1253  if ( !DailyMortality() )
1254  {
1255  CheckManagement();
1257  // This call is because it is OK to get multiple calls to this function
1258  // but it is not OK if no-one calls it!
1259  m_covey->MoveDistance( g_MaxWalk[m_age], 10, 10000 );
1260  }
1261  else
1262  {
1263  m_signal = 1;
1264  ChDying();
1265  }
1266 }
int g_MaxWalk[200]
Definition: Partridge_Population_Manager.cpp:66
int m_age
Age in days.
Definition: Partridge_All.h:410
int m_signal
Used to pass information to outputs.
Definition: Partridge_All.h:404
virtual bool DailyMortality()
Background mortality check.
Definition: Partridge_All.cpp:1179
void ChDying(void)
Chick Dying.
Definition: Partridge_All.cpp:989
void MoveDistance(int a_max_distance, int a_step_size, double a_food_density_needed)
Entry point for movement.
Definition: Partridge_Covey.cpp:652
void SetChickAge(int age)
Set chick age.
Definition: Partridge_Covey.h:481
void CheckManagement(void)
Definition: PopulationManager.cpp:1404

References Partridge_Chick::ChDying(), TAnimal::CheckManagement(), DailyMortality(), g_MaxWalk, Partridge_Base::m_age, Partridge_Base::m_covey, Partridge_Base::m_signal, Partridge_Covey::MoveDistance(), and Partridge_Covey::SetChickAge().

◆ ChDeveloping()

Partridge_State Partridge_Chick2::ChDeveloping ( void  )
privatevirtual

State developing.

Developing is basically being alive each day until becoming an adult object.

Reimplemented from Partridge_Chick.

1206 {
1207  m_age++;
1209  {
1210  return pars_ChDeveloping;
1211  }
1212  else
1213  return pars_ChMaturing;
1214 }
CfgInt cfg_par_mature_threshold("PAR_MATURE_THRESHOLD", CFG_CUSTOM, 84)
Age at maturing in days.
@ pars_ChDeveloping
Definition: Partridge_All.h:276
@ pars_ChMaturing
Definition: Partridge_All.h:276
int value(void)
Definition: configurator.h:98

References cfg_par_mature_threshold, Partridge_Base::m_age, pars_ChDeveloping, pars_ChMaturing, and CfgInt::value().

Referenced by EndStep().

◆ ChMaturing()

Partridge_State Partridge_Chick2::ChMaturing ( void  )
privatevirtual

State maturing.

Matures the Chick2 object into an Partridge_Male or Partridge_Female. Passes all useful information using an AdultPartridge_struct.

Reimplemented from Partridge_Chick.

1222 {
1223  AdultPartridge_struct * aps;
1224  aps = new AdultPartridge_struct;
1225  aps->bx = m_born_x;
1226  aps->by = m_born_y;
1227  aps->x = m_Location_x;
1228  aps->y = m_Location_y;
1230  aps->m_covey = m_covey;
1231  if ( m_sex == true ) m_OurPopulationManager->CreateObjects( pob_Male, aps, 1 );
1232  else
1234  // object will be destroyed by death state
1235  // but must let Dad know anyway
1236  delete aps;
1237  // Set up the flags to destroy this object
1238  m_CurrentStateNo = -1;
1239  m_StepDone = true;
1240  m_covey->RemoveMember( this );
1242  // m_OurPopulationManager->AddMatured();
1243  return pars_Destroy;
1244 }
@ pars_Destroy
Definition: Partridge_All.h:287
@ pob_Female
Definition: Partridge_All.h:297
@ pob_Male
Definition: Partridge_All.h:297
Struct to pass adult partridge information.
Definition: Partridge_All.h:386
int m_born_x
x-coord of birth
Definition: Partridge_All.h:412
int m_born_y
y-coord of birth
Definition: Partridge_All.h:414
int m_family_counter
Family ID.
Definition: Partridge_All.h:408
Partridge_Population_Manager * m_OurPopulationManager
Pointer to the population manager.
Definition: Partridge_All.h:430
bool m_sex
Sex.
Definition: Partridge_All.h:590
void OnChickMature()
Remove a matured chick.
Definition: Partridge_Covey.cpp:2460
int RemoveMember(Partridge_Base *a_former_member)
Remove a member from the covey.
Definition: Partridge_Covey.cpp:1664
void CreateObjects(int ob_type, Partridge_struct *data, int number)
Definition: Partridge_Population_Manager.cpp:368
int by
Definition: Partridge_All.h:347
Partridge_Covey * m_covey
Definition: Partridge_All.h:349
int x
Definition: Partridge_All.h:344
int bx
Definition: Partridge_All.h:346
int y
Definition: Partridge_All.h:345
int family_counter
Definition: Partridge_All.h:350
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:118
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:116
int m_Location_y
Definition: PopulationManager.h:228
int m_Location_x
Definition: PopulationManager.h:225

References Partridge_struct::bx, Partridge_struct::by, Partridge_Population_Manager::CreateObjects(), Partridge_struct::family_counter, Partridge_Base::m_born_x, Partridge_Base::m_born_y, Partridge_struct::m_covey, Partridge_Base::m_covey, TALMaSSObject::m_CurrentStateNo, Partridge_Base::m_family_counter, TAnimal::m_Location_x, TAnimal::m_Location_y, Partridge_Base::m_OurPopulationManager, Partridge_Chick::m_sex, TALMaSSObject::m_StepDone, Partridge_Covey::OnChickMature(), pars_Destroy, pob_Female, pob_Male, Partridge_Covey::RemoveMember(), Partridge_struct::x, and Partridge_struct::y.

Referenced by Step().

◆ DailyMortality()

bool Partridge_Chick2::DailyMortality ( void  )
virtual

Background mortality check.

Does the simple probability test against chance of daily mortality for non-specifically modelled mortalities.

Reimplemented from Partridge_Chick.

1180 {
1181  double extramort=cfg_par_chick2_mortality.value();
1182  int today = m_OurLandscape->SupplyDayInYear();
1183  // Is it winter?
1184  if (( ( today >= October ) || ( today < April )) ) {
1185  if (m_OurPopulationManager->SupplyShouldFlock()) { // We are in the "Winter Period"
1186  if ( (g_rand_uni()) < (cfg_par_adult_mortalityWinter.value()*extramort) ) {
1187  return true;
1188  }
1189  } else {
1190  // Must test summer mort instead;
1191  if ( g_rand_uni() < (cfg_par_adult_mortalitySummer.value()*extramort )) {
1192  return true;
1193  }
1194  }
1195  }
1196  return false;
1197 }
static CfgFloat cfg_par_adult_mortalitySummer("PAR_ADULT_MORTALITYSUMMER", CFG_CUSTOM, 0.0001)
Adults - daily probability of non-explicitly modelled mortality in Summer.
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
static CfgFloat cfg_par_adult_mortalityWinter("PAR_ADULT_MORTALITYWINTER", CFG_CUSTOM, 0.0217)
Adults - daily probability of non-explicitly modelled mortality in Winter.
static CfgFloat cfg_par_chick2_mortality("PAR_CHICK_TWO_MORTALITY", CFG_CUSTOM, 1.0)
Chick2 - scaler applied to adult mortalities.
double value(void)
Definition: configurator.h:118
int SupplyDayInYear(void)
Definition: landscape.h:1596
bool SupplyShouldFlock()
Definition: Partridge_Population_Manager.h:286
Landscape * m_OurLandscape
Definition: PopulationManager.h:229
const int October
Definition: landscape.h:45
const int April
Definition: landscape.h:39

References April, cfg_par_adult_mortalitySummer, cfg_par_adult_mortalityWinter, cfg_par_chick2_mortality, g_rand_uni, TAnimal::m_OurLandscape, Partridge_Base::m_OurPopulationManager, October, Landscape::SupplyDayInYear(), Partridge_Population_Manager::SupplyShouldFlock(), and CfgFloat::value().

Referenced by BeginStep().

◆ EndStep()

void Partridge_Chick2::EndStep ( void  )
virtual

Chick2 EndSte[.

EndStep does development and dying.

Reimplemented from Partridge_Chick.

1303 {
1304  if ( m_CurrentStateNo == -1 )
1305  return;
1306 
1307  switch ( m_state )
1308  {
1309  case pars_Initiation:
1310  case pars_ChMaturing:
1311  break;
1312  case pars_ChDying:
1313  ChDying();
1314  break;
1315  case pars_ChDeveloping:
1316  m_state = ChDeveloping();
1317  break;
1318  default:
1319  m_OurLandscape->Warn( "Partridge_Chick::EndStep - unknown pars type", NULL );
1320  exit( 1 );
1321  }
1322 }
@ pars_Initiation
Definition: Partridge_All.h:267
@ pars_ChDying
Definition: Partridge_All.h:276
void Warn(std::string a_msg1, std::string a_msg2)
Definition: landscape.h:1579
Partridge_State m_state
Current behavioural state.
Definition: Partridge_All.h:422
virtual Partridge_State ChDeveloping(void)
State developing.
Definition: Partridge_All.cpp:1205

References ChDeveloping(), Partridge_Chick::ChDying(), TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, Partridge_Base::m_state, pars_ChDeveloping, pars_ChDying, pars_ChMaturing, pars_Initiation, and Landscape::Warn().

◆ OnFarmEvent()

bool Partridge_Chick2::OnFarmEvent ( FarmToDo  event)
virtual

Management event handler.

Check and respond to farm events either using config variables for cutting or direct inline values.

Reimplemented from Partridge_Chick.

1045 {
1046  switch ( event )
1047  {
1048  case sleep_all_day:
1049  break;
1050  case autumn_plough:
1051  break;
1052  case autumn_harrow:
1053  break;
1054  case autumn_roll:
1055  break;
1056  case autumn_sow:
1057  break;
1058  case winter_plough:
1059  break;
1060  case deep_ploughing:
1061  break;
1062  case spring_plough:
1063  break;
1064  case spring_harrow:
1065  break;
1066  case spring_roll:
1067  break;
1068  case spring_sow:
1069  break;
1070  case fp_npks:
1071  break;
1072  case fp_npk:
1073  break;
1074  case fp_pk:
1075  break;
1076  case fp_liquidNH3:
1077  break;
1078  case fp_slurry:
1079  break;
1080  case fp_manganesesulphate:
1081  break;
1082  case fp_manure:
1083  break;
1084  case fp_greenmanure:
1085  break;
1086  case fp_sludge:
1087  break;
1088  case fa_npk:
1089  break;
1090  case fa_pk:
1091  break;
1092  case fa_slurry:
1093  break;
1094  case fa_ammoniumsulphate:
1095  break;
1096  case fa_manure:
1097  break;
1098  case fa_greenmanure:
1099  break;
1100  case fa_sludge:
1101  break;
1102  case glyphosate:
1103  case herbicide_treat:
1104  break;
1105  case growth_regulator:
1106  break;
1107  case fungicide_treat:
1108  break;
1109  case syninsecticide_treat:
1110  case insecticide_treat:
1111  case product_treat:
1112  break;
1113  case molluscicide:
1114  break;
1115  case row_cultivation:
1116  break;
1117  case strigling:
1118  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1119  break;
1120  case hilling_up:
1121  break;
1122  case water:
1123  break;
1124  case swathing:
1125  break;
1126  case harvest:
1127  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1128  break;
1129  case cattle_out:
1130  break;
1131  case cattle_out_low:
1132  break;
1133  case cut_to_hay:
1134  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1135  break;
1136  case cut_to_silage:
1137  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1138  break;
1139  case straw_chopping:
1140  break;
1141  case hay_turning:
1142  break;
1143  case hay_bailing:
1144  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1145  break;
1146  case stubble_harrowing:
1147  break;
1149  break;
1150  case burn_straw_stubble:
1151  break;
1152  case mow:
1153  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1154  break;
1155  case cut_weeds:
1156  if ( g_rand_uni() < cfg_par_ad_cut.value() ) Dying();
1157  break;
1158  case pigs_out:
1159  break;
1160  case strigling_sow:
1161  if ( g_rand_uni() < 0.01 ) Dying();
1162  break;
1163  default:
1164  m_OurLandscape->Warn( "Skylark_Clutch::OnFarmEvent(): Unknown event type:", m_OurLandscape->EventtypeToString( event ) );
1165  exit( 1 );
1166  }
1167  // Must incorporate a test here in case the animal is dead - killing it twice
1168  // can be a bad idea
1169  if ( m_state == pars_Destroy ) return true;
1170  else
1171  return false;
1172 }
static CfgFloat cfg_par_ad_cut("PAR_AD_CUT_MORT", CFG_CUSTOM, 0.01)
Adult % mortality on cutting.
std::string EventtypeToString(int a_event)
Definition: Landscape.cpp:3918
virtual void Dying()
Generic dying handler.
Definition: Partridge_All.h:607
@ burn_straw_stubble
Definition: treatment.h:92
@ autumn_harrow
Definition: treatment.h:37
@ swathing
Definition: treatment.h:81
@ fa_pk
Definition: treatment.h:62
@ winter_plough
Definition: treatment.h:42
@ strigling
Definition: treatment.h:77
@ fp_npks
Definition: treatment.h:48
@ glyphosate
Definition: treatment.h:102
@ fa_sludge
Definition: treatment.h:68
@ fp_liquidNH3
Definition: treatment.h:51
@ spring_roll
Definition: treatment.h:46
@ fa_greenmanure
Definition: treatment.h:67
@ spring_plough
Definition: treatment.h:44
@ molluscicide
Definition: treatment.h:75
@ syninsecticide_treat
Definition: treatment.h:99
@ hay_turning
Definition: treatment.h:88
@ autumn_roll
Definition: treatment.h:38
@ fp_manure
Definition: treatment.h:55
@ deep_ploughing
Definition: treatment.h:43
@ pigs_out
Definition: treatment.h:84
@ fa_npk
Definition: treatment.h:61
@ herbicide_treat
Definition: treatment.h:71
@ row_cultivation
Definition: treatment.h:76
@ spring_sow
Definition: treatment.h:47
@ fungicide_treat
Definition: treatment.h:73
@ fp_manganesesulphate
Definition: treatment.h:53
@ harvest
Definition: treatment.h:82
@ cut_to_silage
Definition: treatment.h:86
@ sleep_all_day
Definition: treatment.h:33
@ mow
Definition: treatment.h:93
@ fa_ammoniumsulphate
Definition: treatment.h:65
@ autumn_plough
Definition: treatment.h:34
@ straw_chopping
Definition: treatment.h:87
@ fa_manure
Definition: treatment.h:66
@ fp_greenmanure
Definition: treatment.h:56
@ fa_slurry
Definition: treatment.h:63
@ product_treat
Definition: treatment.h:101
@ stubble_harrowing
Definition: treatment.h:90
@ hilling_up
Definition: treatment.h:79
@ growth_regulator
Definition: treatment.h:72
@ insecticide_treat
Definition: treatment.h:74
@ cattle_out_low
Definition: treatment.h:100
@ cut_to_hay
Definition: treatment.h:85
@ cut_weeds
Definition: treatment.h:94
@ fp_sludge
Definition: treatment.h:57
@ autumn_sow
Definition: treatment.h:41
@ fp_npk
Definition: treatment.h:49
@ fp_pk
Definition: treatment.h:50
@ hay_bailing
Definition: treatment.h:89
@ spring_harrow
Definition: treatment.h:45
@ strigling_sow
Definition: treatment.h:95
@ cattle_out
Definition: treatment.h:83
@ fp_slurry
Definition: treatment.h:52
@ water
Definition: treatment.h:80
@ autumn_or_spring_plough
Definition: treatment.h:91

References autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, burn_straw_stubble, cattle_out, cattle_out_low, cfg_par_ad_cut, cut_to_hay, cut_to_silage, cut_weeds, deep_ploughing, Partridge_Chick::Dying(), Landscape::EventtypeToString(), fa_ammoniumsulphate, fa_greenmanure, fa_manure, fa_npk, fa_pk, fa_sludge, fa_slurry, fp_greenmanure, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_npk, fp_npks, fp_pk, fp_sludge, fp_slurry, fungicide_treat, g_rand_uni, glyphosate, growth_regulator, harvest, hay_bailing, hay_turning, herbicide_treat, hilling_up, insecticide_treat, TAnimal::m_OurLandscape, Partridge_Base::m_state, molluscicide, mow, pars_Destroy, pigs_out, product_treat, row_cultivation, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, straw_chopping, strigling, strigling_sow, stubble_harrowing, swathing, syninsecticide_treat, CfgFloat::value(), Landscape::Warn(), water, and winter_plough.

◆ Step()

void Partridge_Chick2::Step ( void  )
virtual

Chick2Step.

Step only deals with maturing.

Reimplemented from Partridge_Chick.

1274 {
1275  if ( m_CurrentStateNo == -1 || m_StepDone )
1276  return;
1277 
1278  switch ( m_state )
1279  {
1280  case pars_Initiation:
1282  case pars_ChDeveloping:
1283  case pars_ChDying:
1284  m_StepDone = true;
1285  break;
1286  case pars_ChMaturing:
1287  ChMaturing();
1288  m_StepDone = true;
1289  break;
1290 
1291  default:
1292  m_OurLandscape->Warn( "Partridge_Chick2::Step - unknown pars type", NULL );
1293  exit( 1 );
1294  }
1295 }
virtual Partridge_State ChMaturing(void)
State maturing.
Definition: Partridge_All.cpp:1221

References ChMaturing(), TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, Partridge_Base::m_state, TALMaSSObject::m_StepDone, pars_ChDeveloping, pars_ChDying, pars_ChMaturing, pars_Initiation, and Landscape::Warn().


The documentation for this class was generated from the following files: